from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^cassebras/', include('cassebras.foo.urls')),
    (r'^competitors/$', 'cassebras.contest.views.competitors'),
    (r'^competitors/(?P<competitor_id>\d+)/$', 'cassebras.contest.views.competitor'),
    (r'^categories/$', 'cassebras.contest.views.categories'),
    (r'^categories/(?P<category_name>[A-Za-z]+)/$', 'cassebras.contest.views.category'),
    (r'^contest/$', 'cassebras.contest.views.contest'),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^admin/', include(admin.site.urls)),     
)
